{$CLEO .cs}


model.Load(#BALLAS1)
model.Load(#BALLAS2)
model.Load(#BALLAS3)
model.Load(#AT_BALLAS10)
model.Load(#AT_BALLAS9)
model.Load(#SA_BALLAS9)
model.Load(#SA_BALLAS8)
model.Load(#SA_BALLAS6)
model.Load(#SA_BALLAS7)
model.Load(#SA_BALLAS5)
model.Load(#SA_BALLAS5)
model.Load(#SA_BALLAS10)
model.Load(#AT_BALLAS11)
model.Load(#AK47)


model.Load(#LCS_PYTHON)
model.Load(#LCS_CHROMEGUN)
model.Load(#LCS_UZI)
model.Load(#LC_AK47)
model.Load(#LCS_BUDDYSHOT)
model.Load(#VC_RUGER)
model.Load(#VC_INGRAM)
model.Load(#LC_M16)
model.Load(#VCS_SKORPION)
model.Load(#LCS_SHOTGSPA)

038B: load_requested_models

const
LCS_PYTHON =  191
LCS_LASER = 181
LCS_CHROMEGUN =  207
LCS_4k47 =  197
LCS_BUDDYSHOT = 166
VC_INGRAM = 133
LCS_SPAS12 = 193
LCS_UZI = 196
LCS_BASEBALLBAT = 164
LCS_CHAINSAW    = 170
LCS_MINIGUN = 186
LCS_M60 = 184
LCS_M21 = 183
LC_AK47 = 111  
VC_RUGER = 147 
LC_M16 = 117
LCS_KATANA =  179
VCS_M249 = 221
VCS_SKORPION  = 225
end 

10@ = object.Create(#AK47,  7584.6504, 8255.1035, 18.8317)
0382: set_object 10@ collision_detection 0
0750: set_object 10@ visibility 0
20@ = audiostream.Load3D("cleo\addons\Tekken2Character.mp3")

audiostream.LinkToObject(20@, 10@)
audiostream.PerformAction(20@,resume)
audiostream.Loop(20@, 1)
while true 
wait 0 
 if
856D:  not    actor 0@ defined

then
009A: 0@ = create_actor_pedtype 8 model #SA_BALLAS5 at  7577.3652 8250.2061 18.8317
actor.Angle(0@ ) =  227.0215
actor.Health(0@) = 500
actor.GiveWeaponAndAmmo(0@,LCS_SPAS12   ,99999)
end


 if
856D:  not    actor 1@ defined

then
009A: 1@ = create_actor_pedtype 8 model #BALLAS3 at  7584.3149 8248.9033 18.8317
actor.Angle(1@ ) = 182.9022
actor.Health(1@) = 500
actor.GiveWeaponAndAmmo(1@,LCS_4k47   ,99999)
end

 if
856D:  not    actor 2@ defined

then
009A: 2@ = create_actor_pedtype 8 model #AT_BALLAS11 at 7581.4414 8220.0762 18.8317
actor.Angle(2@ )  = 339.3311
actor.Health(2@) = 500
actor.GiveWeaponAndAmmo(2@,LCS_PYTHON   ,99999)
end


 if
856D:  not    actor 3@ defined

then


009A: 3@ = create_actor_pedtype 8 model #SA_BALLAS7 at  7618.335 8225.3779 18.8317
actor.Angle(3@ ) = 170.5587
actor.Health(3@) = 500
actor.GiveWeaponAndAmmo(3@,LCS_BUDDYSHOT   ,99999)
end

 if
856D:  not    actor 4@ defined

then

009A: 4@ = create_actor_pedtype 8 model #BALLAS2 at  7588.7412 8205.2285 18.8245
actor.Angle(4@ ) =  268.9276
actor.Health(4@) = 500
actor.GiveWeaponAndAmmo(4@,VC_RUGER   ,99999)
end 

if
856D:  not    actor 5@ defined
 
then

009A: 5@ = create_actor_pedtype 8 model #AT_BALLAS9 at  7588.6938 8246.7217 18.8317
actor.Angle(5@ ) =  147.4076
actor.Health(5@) = 500
actor.GiveWeaponAndAmmo(5@,VCS_SKORPION   ,99999)
end

if
00FE:    actor $PLAYER_ACTOR sphere 0 in_sphere   7588.6938 8246.7217 18.8317  121.0 122.0 122.0
then
   audiostream.PerformAction(20@,resume) 
    if
     056D:     actor 0@ defined 
     then
        if
        actor.Dead(0@)
        then
         actor.RemoveReferences(0@)
        end 
     end 
    
    if
     056D:     actor 1@ defined 
     then
        if
        actor.Dead(1@)
        then
         actor.RemoveReferences(1@)
        end 
     end 
     
    if
     056D:     actor 2@ defined 
     then
        if
        actor.Dead(2@)
        then
         actor.RemoveReferences(2@)
        end 
     end 
     
    if
     056D:     actor 3@ defined 
     then
        if
        actor.Dead(3@)
        then
         actor.RemoveReferences(3@)
        end 
     end 
     
    if
     056D:     actor 4@ defined 
     then
        if
        actor.Dead(4@)
        then
         actor.RemoveReferences(4@)
        end 
     end 
     
    if
     056D:     actor 5@ defined 
     then
        if
        actor.Dead(5@)
        then
         actor.RemoveReferences(5@)
        end 
     end 
end  
 
         if or
         80FE:  not   actor $PLAYER_ACTOR sphere 0 in_sphere  7588.6938 8246.7217 18.8317  radius 121.0 122.0 122.0
         $onmission == 0 
         //80FE: not   actor $PLAYER_ACTOR sphere 0 in_sphere 7720.4850 -8778.2680 1014.2270  radius 151.0 151.0 151.0
        
         then  
            audiostream.PerformAction(20@,pause)   
            if
             056D:     actor 0@ defined     
            then
                   actor.RemoveReferences(0@)
          
            end
            if
             056D:     actor 1@ defined     
            then
                   actor.RemoveReferences(1@)
          
            end
            if
             056D:     actor 2@ defined     
            then
                   actor.RemoveReferences(2@)
          
            end
            if
             056D:     actor 3@ defined     
            then
                   actor.RemoveReferences(3@)
          
            end
            if
             056D:     actor 4@ defined     
            then
                   actor.RemoveReferences(4@)
          
            end
            if
             056D:     actor 5@ defined     
            then
                   actor.RemoveReferences(5@)
          
            end
            
            if
             $onmission == 0 
             then
             
             goto @end 
            break
            end
         end 
end 
:END
object.Destroy(10@)
audiostream.Release(20@)
END_THREAD